//
// Created by jinbang.li on 2023/8/6.
//

#ifndef OPENPLAYDEMO_IOPPLAYERBUILDER_H
#define OPENPLAYDEMO_IOPPLAYERBUILDER_H

#include "IOpPlayer.h"

class IOpPlayerBuilder {
public:
    virtual IOpPlayer* BuilderPlayer(unsigned char index = 0);

protected:
    virtual IOpDemux* createDemux() = 0;
    virtual IOpDecode* createDecode() = 0;
    virtual IOpResample* createResample() = 0;
    virtual IOpAudioPlay* createAudioPlay() = 0;
    virtual IOpVideoView* createVideoView() = 0;
    virtual IOpPlayer* createPlayer(unsigned char index = 0) = 0;
};


#endif //OPENPLAYDEMO_IOPPLAYERBUILDER_H
